package com.share.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.order.domain.EndOrderVo;
import com.share.order.domain.OrderInfo;
import com.share.order.domain.SubmitOrderVo;

/**
 * 订单Service接口
 *
 * @author atguigu
 * @date 2024-02-22
 */
public interface IOrderInfoService extends IService<OrderInfo> {

    //获取未完成订单
    OrderInfo getNoFinishOrder(Long userId);

    Long saveOrder(SubmitOrderVo submitOrderVo);

    void endOrder(EndOrderVo endOrderVo);
}
